/* 
 * File:   InstantComputeParameterCommand.h
 * Author: Gab'z
 *
 * Created on 5 juin 2012, 02:43
 */

#ifndef INSTANTCOMPUTEPARAMETERCOMMAND_H
#define	INSTANTCOMPUTEPARAMETERCOMMAND_H

#include "ParametersCommand.h"

namespace calculator {

    class InstantComputeParametersCommand : public ParametersCommand {
        friend class CommandMap;

    public:
        virtual InstantComputeParametersCommand* clone() const;

        void apply(Parameters* parameters) const;
        virtual ~InstantComputeParametersCommand();
        const Memento* createMemento() const throw (CommandException);
        void restoreFromMemento(const Memento* memento) const throw (MementoException);
        
    protected:
        InstantComputeParametersCommand(const std::string name);
        InstantComputeParametersCommand(const InstantComputeParametersCommand& orig);
    };

}

#endif	/* INSTANTCOMPUTEPARAMETERCOMMAND_H */

